
public class Thread2 extends Thread {
	Donnees d;
	Thread2(Donnees d) {
		super();
		this.d = d;
	}

	public synchronized void run(){
		
		for (int j=1;j<=10;j++){
			try {
				d.prend();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			
		}
	}
}
